#!/usr/bin/python
"""Based on http://pythonhosted.org/Pyro/6-eventserver.htm

"""
from Pyro.EventService.Clients import Subscriber

class QuoteSubscriber(Subscriber):
    def __init__(self):
        Subscriber.__init__(self)
        self.subscribe("Quote")
        
    def event(self, event):
        print "Got a Quote: %s=%f" % (event.msg)

sub = QuoteSubscriber()
sub.listen()

